package com.foreverwin.jzymes.common.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.common.mapper.SfcBatchPassLogMapper;
import com.foreverwin.jzymes.common.domain.SfcBatchPassLog;
import com.foreverwin.jzymes.common.service.ISfcBatchPassLogService;

/**
 * SFC批次过站 服务层实现
 * 
 * @author ervin
 * @date 2019-03-21
 */
@Service
public class SfcBatchPassLogServiceImpl implements ISfcBatchPassLogService
{
	@Autowired
	private SfcBatchPassLogMapper sfcBatchPassLogMapper;

	/**
     * 查询SFC批次过站信息
     * 
     * @param handle SFC批次过站ID
     * @return SFC批次过站信息
     */
    @Override
	public SfcBatchPassLog selectSfcBatchPassLogById(String handle)
	{
	    return sfcBatchPassLogMapper.selectSfcBatchPassLogById(handle);
	}
	
	/**
     * 查询SFC批次过站列表
     * 
     * @param sfcBatchPassLog SFC批次过站信息
     * @return SFC批次过站集合
     */
	@Override
	public List<SfcBatchPassLog> selectSfcBatchPassLogList(SfcBatchPassLog sfcBatchPassLog)
	{
	    return sfcBatchPassLogMapper.selectSfcBatchPassLogList(sfcBatchPassLog);
	}
	
    /**
     * 新增SFC批次过站
     * 
     * @param sfcBatchPassLog SFC批次过站信息
     * @return 结果
     */
	@Override
	public int insertSfcBatchPassLog(SfcBatchPassLog sfcBatchPassLog)
	{
	    return sfcBatchPassLogMapper.insertSfcBatchPassLog(sfcBatchPassLog);
	}
	
	/**
     * 修改SFC批次过站
     * 
     * @param sfcBatchPassLog SFC批次过站信息
     * @return 结果
     */
	@Override
	public int updateSfcBatchPassLog(SfcBatchPassLog sfcBatchPassLog)
	{
	    return sfcBatchPassLogMapper.updateSfcBatchPassLog(sfcBatchPassLog);
	}

	/**
     * 删除SFC批次过站对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteSfcBatchPassLogByIds(String ids)
	{
		return sfcBatchPassLogMapper.deleteSfcBatchPassLogByIds(ids.split(","));
	}
	
}
